<?php
namespace app\api\controller\wxapp;

use app\api\controller\Controller;
use app\common\model\WxappBanner as BannerModel;

class Banner extends Controller {


    public function getList(){
        $model = new BannerModel;
        $list = $model->getList();
        if($list){
            return $this->renderSuccess($list, '数据获取成功');
        } else {
            return $this->renderError('数据获取失败');
        }
    }

}